package com.xyf.sys.service;

import com.xyf.sys.domain.OrderProduct;
import com.xyf.sys.domain.User;
import com.xyf.sys.vo.OrderUserResult;
import com.xyf.sys.vo.SaleCountResult;

import java.util.List;

public interface IOrderProductService {

    OrderProduct get(String id);

    void save(OrderProduct orderProduct);

    void saveAll(List<OrderProduct> products);

    List<OrderProduct> getOrderProductList(String orderId);

    int update(OrderProduct orderProduct);

    OrderProduct query(String code);

    Integer count(Long goodsId, String date);

    List<User> findGoodsUser(Long goodsId);

    List<OrderUserResult> findGoodsUsers(List<Long> goodsIds);

    OrderProduct getCartItemProduct(String orderId, Long cartItemId);

    OrderProduct find(String orderNumber);

    List<SaleCountResult> countSaleAndTotalStock(List<Long> goodsIds, String date);


}
